<template>
	<view class="container">
		<u-cell-group :border="false">
			<u-cell size="large" :title="'客户名称：' + item.business.nickname" :value="'申请状态：' + item.status_text" v-for="item in receivelist" :key="item.id">
				<view slot="label" style="color: #909193;font-size: 14px; line-height: 18px;margin-top: 10px;">
					<view>申请时间：{{item. applytime}}</view>
				</view>
			</u-cell>
		</u-cell-group>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				receivelist: [],
				LoginUser: {},
			}
		},
		onReady() {
			this.$u.auth.check();
			this.LoginUser = uni.getStorageSync('LoginUser') ? uni.getStorageSync('LoginUser') : {}
			this.getReceiveData()
		},
		methods: {
			async getReceiveData() {
				let result = await this.$u.api.admin.receivelist({
					adminid: this.LoginUser.id 
				})
				if (result.code == 1) {
					this.receivelist = result.data
				}
			}
		}
	}
</script>

<style>
	.container {
		padding: 8px;
	}
</style>